package com.ocm.core.mapping.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ocm.core.mapping.IDMapping;
import com.ocm.core.mapping.MappingConfigure;
import com.ocm.core.mapping.MappingConfigureDataSource;


@Service("mappingConfigure")
public class MappingConfigureImpl implements MappingConfigure {

   @Autowired
   private MappingConfigureDataSource mappingConfigureDataSource;

   public String[] getPropertiesExcluding(IDMapping idMapping) {
      ClassMapping classMapping = mappingConfigureDataSource.getClassDomainInstance(idMapping);
      return classMapping.getExcludedProperties();
   }

}
